﻿using System.Collections.Generic;

namespace Marmat.Forms
{
    public class TopicBarItemCollection : List<TopicBarItem>
    {

        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        public TopicBarItemCollection(TopicBarPage TopicBarPage)
        {
            this._TopicBarPage = TopicBarPage;
        }
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        private TopicBarPage _TopicBarPage;
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        public TopicBarItem Add(string Name)
        {
            var Item = new TopicBarItem();
            Item.Name = Name;
            return this.Add(Item);
        }

        public new TopicBarItem Add(TopicBarItem Item)
        {
            Item._TopicBarPage = this._TopicBarPage;
            base.Add(Item);
            return Item;
        }

        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
    }
}